package com.second.client.controller;

import com.second.client.pojo.vo.IntegrationQueryVo;
import com.second.client.pojo.vo.PageVo;
import com.second.client.service.ClientIntegrationService;
import com.second.common.pojo.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
/**
 * (ClientIntegration)表控制层
 *
 * @author lvyongqi
 * @since 2021-07-24 09:02:27
 */
@RestController
@RequestMapping("integration")
@Api(tags ="积分记录控制层")
public class ClientIntegrationController {
    /**
     * 服务对象
     */
    @Resource
    private ClientIntegrationService clientIntegrationService;

    /**
     * 获取所有的积分记录
     * @return 所有数据
     */
    @PostMapping("getAllIntegration")
    @ApiOperation("获取所有的积分记录")
    public R getAllIntegration(PageVo pageVo, IntegrationQueryVo integrationQueryVo) {
        return clientIntegrationService.getAllIntegration(pageVo,integrationQueryVo);
    }

}
